package com.edt.ichannel.utils;
/**
 * 签名方式
 * 
 * @author Haole
 *
 */
public enum ESignType {

	SIGN_RSA("CERT-RSA"), //采用证书RSA的算法签名
	SIGN_SHA("SHA-1"), //采用SHA-1的方式与静态口令方式签名
	SIGN_MD5("MD5"), //采用MD5与静态口令方式签名
	NOEXIST("")
	;
	
	private String code;
	private ESignType(String code){
		this.code = code;
	}
	public String getCode() {
		return code;
	}
	public static ESignType getNum(String code){
		ESignType[] codes = ESignType.values();
		for(ESignType codeL:codes){
			if(codeL.getCode().equalsIgnoreCase(code)){
				return codeL;
			}
		}
		return NOEXIST;
	}
		
}
